package com.emaimed.search.service.impl;

import com.emaimed.search.mapper.EmaimedSmsMapper;
import com.emaimed.search.pojo.EmaimedSms;
import com.emaimed.search.service.EmaimedSmsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author wjt
 * @version 1.0
 * @date 2021/6/24 13:23
 */
@Service
public class EmaimedSmsServiceImpl implements EmaimedSmsService {

    @Resource
    EmaimedSmsMapper emaimedSmsMapper;

    @Override
    public EmaimedSms selectByPrimaryKey(Integer id) {
        EmaimedSms emaimedSms = emaimedSmsMapper.selectByPrimaryKey(id);
        return emaimedSms;
    }

    /***
     * 查询所有数据
     * @return
     */
    @Override
    public List<EmaimedSms> searchAll() {
        return emaimedSmsMapper.selectAll();
    }

}
